package com.weigee.ktv.model

import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * Created by linde on 2017/5/27.
 * Service
 */
interface WeigeeService
{
//    companion object
//    {
//        val TEST_IMAGE_URL = WeigeeHost.TEST_IMAGE.url
        // 测试地址头
//        const val HOST_URL_TEST = "http://test-weigee.ballq.cn/"
        // 图片地址头
//        const val BASE_URL_IMG = HOST_URL_TEST + "img/"
//    }

    // 商品分类
    @GET("api/apiv1/category/list")
    fun supermarketShoppingCategory(@Query("shopId") shopId: Int?): Call<ResponseBody>

    // 商品列表
    @GET("api/apiv1/product/list")
    fun supermarketShoppingList(@Query("shopId") shopId: Int?, @Query("categoryId") categoryId: Int?): Call<ResponseBody>
}